<template>
<!--  <div>-->
<!--    &lt;!&ndash; 定义组件样式&ndash;&gt;-->
<!--     <el-menu width='200px'-->
<!--          default-active="2"-->
<!--          background-color="#545c64"-->
<!--          text-color="#fff"-->
<!--          active-text-color="#ffd04b">-->
<!--          <el-submenu index="1">-->
<!--            &lt;!&ndash; 定义一级标题&ndash;&gt;-->
<!--            <template slot="title">-->
<!--              <i class="el-icon-location"></i>-->
<!--              <span>导航一</span>-->
<!--            </template>-->
<!--            &lt;!&ndash;定义二级标题&ndash;&gt;-->
<!--            <el-menu-item >-->
<!--              <template slot="title">-->
<!--                <i class="el-icon-location"></i>-->
<!--                <span>选项</span>-->
<!--              </template>-->
<!--            </el-menu-item>-->
<!--          </el-submenu>-->
<!--      </el-menu>-->
<!--  </div>-->
<!--  <div>测试</div>-->
<!--  <div>-->
<!--    <el-row>-->
<!--      <el-button>默认按钮</el-button>-->
<!--      <el-button type="primary">主要按钮</el-button>-->
<!--      <el-button type="success">成功按钮</el-button>-->
<!--      <el-button type="info">信息按钮</el-button>-->
<!--      <el-button type="warning">警告按钮</el-button>-->
<!--      <el-button type="danger">危险按钮</el-button>-->
<!--    </el-row>-->

<!--    <el-row>-->
<!--      <el-button plain>朴素按钮</el-button>-->
<!--      <el-button type="primary" plain>主要按钮</el-button>-->
<!--      <el-button type="success" plain>成功按钮</el-button>-->
<!--      <el-button type="info" plain>信息按钮</el-button>-->
<!--      <el-button type="warning" plain>警告按钮</el-button>-->
<!--      <el-button type="danger" plain>危险按钮</el-button>-->
<!--    </el-row>-->

<!--    <el-row>-->
<!--      <el-button round>圆角按钮</el-button>-->
<!--      <el-button type="primary" round>主要按钮</el-button>-->
<!--      <el-button type="success" round>成功按钮</el-button>-->
<!--      <el-button type="info" round>信息按钮</el-button>-->
<!--      <el-button type="warning" round>警告按钮</el-button>-->
<!--      <el-button type="danger" round>危险按钮</el-button>-->
<!--    </el-row>-->

<!--    <el-row>-->
<!--      <el-button icon="el-icon-search" circle></el-button>-->
<!--      <el-button type="primary" icon="el-icon-edit" circle></el-button>-->
<!--      <el-button type="success" icon="el-icon-check" circle></el-button>-->
<!--      <el-button type="info" icon="el-icon-message" circle></el-button>-->
<!--      <el-button type="warning" icon="el-icon-star-off" circle></el-button>-->
<!--      <el-button type="danger" icon="el-icon-delete" circle></el-button>-->
<!--    </el-row>-->
<!--  </div>-->
  <div>
    <div class="block">
      <span class="demonstration">默认不区分颜色</span>
      <el-rate v-model="value1"></el-rate>
    </div>
    <div class="block">
      <span class="demonstration">区分颜色</span>
      <el-rate
        v-model="value2"
        :colors="colors">
      </el-rate>
    </div>

    <el-steps :active="active" finish-status="success">
      <el-step title="步骤 1" description="这是一段很长很长很长的描述性文字"></el-step>
      <el-step title="步骤 2" description="这是一段很长很长很长的描述性文字"></el-step>
      <el-step title="步骤 3" description="这段就没那么长了"></el-step>
    </el-steps>
    <el-button style="margin-top: 12px;" @click="next">下一步</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value1: null,
      value2: null,
      colors: ['#99A9BF', '#F7BA2A', '#FF9900'] // 等同于 { 2: '#99A9BF', 4: { value: '#F7BA2A', excluded: true }, 5: '#FF9900' }
    }
  }
}

</script>
<script>
  export default {
    data() {
      return {
        active: 0
      };
    },

    methods: {
      next() {
        if (this.active++ > 2) this.active = 0;
      }
    }
  }
</script>

<style>
</style>
